﻿<%@ Page Language="C#" MasterPageFile="~/Templates/top.master" AutoEventWireup="true"
    CodeFile="gallery-grid.aspx.cs" Inherits="gallery_grid" Title="Untitled Page" %>

<%@ Register Src="~/WebControl/NewPro.ascx" TagName="NewPros" TagPrefix="uc1" %>
<%@ Register Src="~/WebControl/ProType_ReMen.ascx" TagName="ProType" TagPrefix="uc2" %>
<%@ Register Src="~/WebControl/WeekRanking.ascx" TagName="WeekRanking" TagPrefix="uc3" %>
<%@ Register Src="~/WebControl/NewComments.ascx" TagName="NewComments" TagPrefix="uc4" %>
<%@ Register Src="~/WebControl/ProCookie.ascx" TagName="ProCookie" TagPrefix="uc5" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="Navigation">
        您当前的位置： 
            <span><a href="index.aspx">首页</a></span><span>&raquo;</span>
            <label id="pSitemaps" runat="server"></label>
    </div>
    <div style="margin-top: 10px;" class="left-main">
        <div class="clear">
        </div>
        <div class="GoodsSearchWrap">
            <asp:Panel ID="panelTable" runat="server">
                <div class="GoodsSelector boxGray" style="display: block;">
                    <div id="selector_contents" class="division" style="display: block;">
                        <table width="100%">
                            <tbody>
                                <asp:Panel ID="panelBrand" runat="server">
                                    <tr>
                                        <td class="textright" style="padding-right: 6px; width: 72px; white-space: nowrap;">
                                            品牌：</td>
                                        <td style="line-height: 22px; border-bottom: 1px solid #eee;">
                                            <asp:Repeater ID="rpBrand" runat="server">
                                                <ItemTemplate>
                                                    <%--<a href='gallery-grid.aspx?brandID=<%# Eval("brandID") %>'><%# Eval("brand_name")%><span class="num">(0)</span></a>--%>
                                                    <asp:LinkButton ID="lbtnBrand" runat="server" CommandArgument='<%# Eval("brandID") %>'
                                                        OnClick="lbtnBrand_Click"><%# Eval("brand_name")%></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </td>
                                    </tr>
                                </asp:Panel>
                                <asp:Panel ID="panelType" runat="server">
                                    <tr>
                                        <td class="textright" style="padding-right: 6px; width: 72px; white-space: nowrap;
                                            height: 23px;">
                                            款式：</td>
                                        <td style="line-height: 22px; border-bottom: 1px solid #eee;">
                                            <asp:Repeater ID="rpType" runat="server">
                                                <ItemTemplate>
                                                    <%--<a href='gallery-grid.aspx?typeID=<%# Eval("typeID") %>'><%# Eval("typeName")%><span class="num">(0)</span></a>--%>
                                                    <asp:LinkButton ID="lbtnType" runat="server" CommandArgument='<%# Eval("typeID") %>'
                                                        OnClick="lbtnType_Click"><%# Eval("typeName")%></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </td>
                                    </tr>
                                </asp:Panel>
                                <asp:Panel ID="panelMaterial" runat="server">
                                    <tr>
                                        <td class="textright" style="padding-right: 6px; width: 72px; white-space: nowrap;">
                                            面料：</td>
                                        <td style="line-height: 22px; border-bottom: 1px solid #eee;">
                                            <asp:Repeater ID="rpMaterial" runat="server">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="lbtnMaterial" runat="server" CommandArgument='<%# Eval("MaterialName") %>'
                                                        OnClick="lbtnMaterial_Click"><%# Eval("MaterialName")%></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </td>
                                    </tr>
                                </asp:Panel>
                                <asp:Panel ID="panelMat" runat="server">
                                    <tr>
                                        <td class="textright" style="padding-right: 6px; width: 72px; white-space: nowrap;">
                                            组织：
                                        </td>
                                        <td style="line-height: 22px; border-bottom: 1px solid #eee;">
                                            <asp:Repeater ID="rpMat" runat="server">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="lbtnMat" runat="server" CommandArgument='<%# Eval("MatName") %>'
                                                        OnClick="lbtnMat_Click"><%# Eval("MatName")%></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </td>
                                    </tr>
                                </asp:Panel>
                                <asp:Panel ID="panelExpirySeason" runat="server">
                                    <tr>
                                        <td class="textright" style="padding-right: 6px; width: 72px; white-space: nowrap;">
                                            季节：</td>
                                        <td style="line-height: 22px; border-bottom: 1px solid #eee;">
                                            <asp:Repeater ID="rpExpirySeason" runat="server">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="lbtnExpirySeason" runat="server" CommandArgument='<%# Eval("id") %>'
                                                        OnClick="lbtnExpirySeason_Click"><%# Eval("name") %></asp:LinkButton>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </td>
                                    </tr>
                                </asp:Panel>
                            </tbody>
                        </table>
                        <asp:TextBox ID="txtBrand" runat="server" Text="0" Style="display: none;"></asp:TextBox>
                        <asp:TextBox ID="txtType" runat="server" Text="0" Style="display: none;"></asp:TextBox>
                        <asp:TextBox ID="txtMaterial" runat="server" Style="display: none;"></asp:TextBox>
                        <asp:TextBox ID="txtMat" runat="server" Style="display: none;"></asp:TextBox>
                        <asp:TextBox ID="txtExpirySeason" runat="server" Style="display: none;" Text="0"></asp:TextBox>
                    </div>
                </div>
            </asp:Panel>
            <div>
                总共找到了<font color="red"><asp:Label ID="lblTotalPruduct" runat="server" Text="0"></asp:Label></font>个商品</div>
            <div id="gallerybar" class="title" style="width: auto; margin-bottom: 5px;">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tbody>
                        <tr>
                            <td>
                                <table class="pager">
                                    <tbody>
                                        <tr>
                                            <td>
                                                <span class="pagecurrent">
                                                    <asp:Label ID="lblCurrentPage" runat="server" Text=""></asp:Label></span>/<span><asp:Label
                                                        ID="lblTotal" runat="server" Text=""></asp:Label></span></td>
                                            <td>
                                                <asp:LinkButton CssClass="prev" onmouseout="this.className = 'prev'" onmousemove="this.className = 'onprev'"
                                                    ID="lbtnPre" runat="server" OnClick="lbtnPre_Click"></asp:LinkButton>
                                            </td>
                                            <td>
                                                <asp:LinkButton ID="lbtnNext" CssClass="next" onmouseout="this.className = 'next'"
                                                    onmousemove="this.className = 'onnext'" runat="server" OnClick="lbtnNext_Click"></asp:LinkButton>
                                            </td>
                                            <%--<td>
                                                <a class="prev" href="#" onmouseout="this.className = 'prev'" onmousemove="this.className = 'onprev'">
                                                    上一页</a>
                                            </td>
                                            <td>
                                                <a class="next" href="#" title="下一页" onmouseout="this.className = 'next'" onmousemove="this.className = 'onnext'">
                                                    下一页</a>
                                            </td>--%>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                            <td>
                                <%--<div class="listmode">
                                    <a title="图文列表" href="#"><span class="list_index">图文列表</span> </a><span class="list_grid current">
                                        橱窗</span> <a title="文字" href="#"><span class="list_text">文字</span> </a>
                                </div>--%>
                            </td>
                            <td style="width: 182px">
                                <%--<div class="listorder">
                                    <a href="#" class="list_asc"><i>价格</i> </a><a href="#" class="list_desc"><i>销量</i> </a>
                                    <a href="#" class="list_desc"><i>人气</i> </a>
                                </div>--%>
                            </td>
                            <td>
                                <div style="text-align: right;">
                                    <label>
                                        排序方式：</label>&nbsp;<%--<select onchange="if(this.value!='_')window.location=this.value">
                                        <optgroup label="排序">
                                            <option selected="selected" value="#">默认</option>
                                            <option value="#">按发布时间 新->旧 </option>
                                            <option value="#">按发布时间 新->旧 </option>
                                            <option value="#">按价格 从高到低 </option>
                                            <option value="#">按价格 从低到高 </option>
                                            <option value="#">总购买次数 </option>
                                            <option value="#">评论次数 </option>
                                        </optgroup>
                                    </select>--%>
                                    <asp:DropDownList ID="ddlPaixu" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlPaixu_SelectedIndexChanged">
                                        <asp:ListItem Value="0">默认</asp:ListItem>
                                        <asp:ListItem Value="1">按价格 从高到低 </asp:ListItem>
                                        <asp:ListItem Value="2">按价格 从低到高</asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="productSYS">
                <ul>
                    <asp:Repeater ID="rpTypeByProductList" runat="server">
                        <ItemTemplate>
                            <li>
                                <div style="overflow: hidden; text-align: center; vertical-align: middle;">
                                    <a title='<%# Eval("tb_title") %><%# Eval("tb_proNO") %>' href='product.aspx?proID=<%# Eval("tb_id") %>'
                                        target="_blank">
                                        <asp:Image ID="Image1" AlternateText='<%# Eval("tb_title") %>' ImageUrl='<%# Eval("tb_showpic") %>'
                                            runat="server" />
                                    </a>
                                </div>
                                <h6>
                                    <a title='<%# Eval("tb_title") %><%# Eval("tb_proNO") %>' target="_blank" href='product.aspx?proID=<%# Eval("tb_id") %>'>
                                        <%# Eval("tb_title")%>
                                        <%# Eval("tb_proNO")%>
                                    </a>
                                </h6>
                                <ul>
                                    <li><span style="color: default;" class="price1">￥<%# Eval("tb_retailPrice")%></span>
                                        <span class="zhekou">(<%# Eval("tb_zhekou")%>折)</span> <span class="mktprice1">￥<%# Eval("tb_wholeSalePrice")%></span>
                                    </li>
                                </ul>
                            </li>
                        </ItemTemplate>
                        <FooterTemplate>
                            <div>
                            </div>
                        </FooterTemplate>
                    </asp:Repeater>
                </ul>
                <div style="text-align: center;">
                    <asp:Label ID="lblCount" runat="server" Text="" Visible="false"></asp:Label></div>
            </div>
            <div class="clearfix">
                <table class="pager floatRight">
                    <tbody>
                        <tr>
                            <td>
                                <asp:LinkButton CssClass="prev" onmouseout="this.className = 'prev'" onmousemove="this.className = 'onprev'"
                                    ID="lbtnPre2" runat="server" OnClick="lbtnPre_Click"></asp:LinkButton>
                            </td>
                            <td>
                                <asp:LinkButton ID="lbtnNext2" CssClass="next" onmouseout="this.className = 'next'"
                                    onmousemove="this.className = 'onnext'" runat="server" OnClick="lbtnNext_Click"></asp:LinkButton>
                            </td>
                            <%--<td>
                                <a class="prev" href="#" onmouseout="this.className = 'prev'" onmousemove="this.className = 'onprev'">
                                    上一页</a>
                            </td>
                            <td style="height: 20px;" class="pagernum">
                                <strong class="pagecurrent">1</strong> <a href="#">2</a> <a href="#">3</a> <a href="#">
                                    4</a> <a href="#">5</a>
                            </td>
                            <td style="padding-right: 20px;">
                                <a class="next" href="#" title="下一页" onmouseout="this.className = 'next'" onmousemove="this.className = 'onnext'">
                                    下一页</a>
                            </td>--%>
                        </tr>
                    </tbody>
                </table>
            </div>

            <script>
                              	window.addEvent('domready', function(){
try{
/*关键字高亮*/
(function(replace_str){
var replace=replace_str.split("+");
if(replace.length){
$ES('.entry-title').each(function(r){
for(i=0;i<replace.length;i++){
if(replace[i]){
var reg=new RegExp("("+replace[i].escapeRegExp()+")","gi");
r.setText(r.get('text').replace(reg,function(){
return "{0}"+arguments[1]+"{1}";
}));
}
}
r.set('html',r.get('text').format("<font color=red>","</font>"));
});
}
})('');
}catch(e){}
if(window.ie6)return;
var gallerybar = $('gallerybar');
var gallerybarSize = gallerybar.getSize();
var gallerybarPos = gallerybar.getPosition();
var fixedStart = gallerybarSize.y+gallerybarPos.y;
var fixGalleryBar = function(){
if(fixedStart<this.getScrollTop()){
gallerybar.addClass('fixed').setStyles({'width':gallerybarSize.x});
}else{
gallerybar.removeClass('fixed').setStyles({'width':'auto'});
}
};
window.addEvents({
'resize':fixGalleryBar,
'scroll':fixGalleryBar
});
}); 
            </script>

        </div>
    </div>
    <div class="sidebar">
        <uc1:NewPros ID="NewPro1" runat="server" />
        <uc2:ProType ID="ProType1" runat="server" />
        <uc3:WeekRanking ID="WeekRanking1" runat="server" />
        <uc4:NewComments ID="NewComments1" runat="server" />
        <uc5:ProCookie ID="ProCookie1" runat="server" />
    </div>
</asp:Content>
